package cn.edu.hyit.hjq.volunteems.backend.mapper;

import cn.edu.hyit.hjq.volunteems.backend.pojo.Activity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.time.LocalDateTime;
import java.util.List;

@Mapper
public interface ActivityMapper {
    void insertActivity(Activity activity);

    List<Activity> selectByStatusAndTime(@Param("offset") int offset, @Param("size") int size);

    List<Activity> findActivitiesStartingAt(@Param("now") LocalDateTime now, @Param("oneHourLater") LocalDateTime oneHourLater);
}
